﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
@* 诊断请求表单视图：Views/Diagnosis/Index.cshtml *@
@using Medlcalcare.MVC.Model
@model DiagnosisRequest
<div class="container mt-5">
    <h2>智能问诊系统</h2>

    @* 表单提交到GetDiagnosis Action *@
    <form asp-action="GetDiagnosis" method="post">
        @* 症状描述输入区域 *@
        <div class="form-group">
            <label asp-for="Symptoms"></label>
            <textarea asp-for="Symptoms" class="form-control" rows="3"
                      placeholder="请输入您的症状描述（如：持续咳嗽三天）"></textarea>
            <span asp-validation-for="Symptoms" class="text-danger"></span>
        </div>

        @* 病史信息输入（可选）*@
        <div class="form-group">
            <label asp-for="PatientHistory"></label>
            <input asp-for="PatientHistory" class="form-control"
                   placeholder="请输入既往病史（如：高血压病史两年）">
        </div>

        @* 提交按钮 *@
        <button type="submit" class="btn btn-primary mt-3">提交分析</button>
    </form>
</div>
@* 客户端验证脚本 *@
@section Scripts {
    <partial name="_ValidationScriptsPartial" />
}